package com.pcbly.web.bean.table;

import java.util.HashSet;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcbly.web.bean.AbstractBaseBean;

public class ColumnBean extends AbstractBaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6921571163825335029L;

	private String columnName;

	private String columnCName;

	private String columnType;

	private String columnNull;

	private String columnKey;

	private String defaultValue;

	private String columnStyle;
	
	private int orderBy;

	private int length;

	private String isList;

	private String isQuery;

	private String iflag;

	private Set<ColumnPropertyBean> columnPropertyBeans = new HashSet<ColumnPropertyBean>(
			0);

	private TableBean tableBean;

	public int getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(int orderBy) {
		this.orderBy = orderBy;
	}

	public String getColumnStyle() {
		return columnStyle;
	}

	public void setColumnStyle(String columnStyle) {
		this.columnStyle = columnStyle;
	}

	public String getIflag() {
		return iflag;
	}

	public void setIflag(String iflag) {
		this.iflag = iflag;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getColumnCName() {
		return columnCName;
	}

	public void setColumnCName(String columnCName) {
		this.columnCName = columnCName;
	}

	public String getColumnType() {
		return columnType;
	}

	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}

	public String getColumnNull() {
		return columnNull;
	}

	public void setColumnNull(String columnNull) {
		this.columnNull = columnNull;
	}

	public String getColumnKey() {
		return columnKey;
	}

	public void setColumnKey(String columnKey) {
		this.columnKey = columnKey;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public String getIsList() {
		return isList;
	}

	public void setIsList(String isList) {
		this.isList = isList;
	}

	public String getIsQuery() {
		return isQuery;
	}

	public void setIsQuery(String isQuery) {
		this.isQuery = isQuery;
	}

	public Set<ColumnPropertyBean> getColumnPropertyBeans() {
		return columnPropertyBeans;
	}

	public void setColumnPropertyBeans(
			Set<ColumnPropertyBean> columnPropertyBeans) {
		this.columnPropertyBeans = columnPropertyBeans;
	}

	public TableBean getTableBean() {
		return tableBean;
	}

	public void setTableBean(TableBean tableBean) {
		this.tableBean = tableBean;
	}

	public ColumnBean() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
